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.
Update Rectangle.java

Formatted, not using varargs to avoid array allocation, assigning vecs[i] to a local variable
Merge pull request #1831 from Gtoknu/patch-3

Methods to merge points to Rectangle