Methods to merge points to Rectangle

Only rectangles were allowed to be merged into other rectangles, three functions were added to merge points on Rectangles.