Added explicit braces to avoid dangling else warnings.
Renamed rectngle.(hpp|cpp) to rectangle.(hpp|cpp).
Refactored Point and Point3D classes.