Skyline packing algorithm
skyline_pack(m)
m
a matrix of vertices for the rectangles
A matrix with updated vertices for the rectangles.