Basic implementation of 2D vectors and rectangles