Added functionality to rectangle

Calculating aspect ratio, calculating center point, centering the
rectangle to a point, fitting a rectangle in/outside another rectangle
while maintaining aspect ratio.