You are given an array `points` representing integer coordinates of some points on a 2D-plane, where `points[i] = [xi, yi]`. The cost of connecting two points `[xi, yi]` and `[xj, yj]` is the manhattan distance between them: `|xi - xj| + |yi - yj|`. Return the minimum cost to make all points connected.
Minimum Spanning Tree (MST)
This problem is a classic Minimum Spanning Tree problem where the nodes are points and the edges are the Manhattan distances between every pair of points. Using Prim's Algorithm: we start from an arbitrary point, maintain a min-heap of the smallest distances to points not yet in the MST, and greedily add the closest point until all are connected.