Added some error handling and initialization

Point center is initialized to (0,0) before adding all the corners.
Added error handling for sorting the corner points.
Update quad-segmentation.cpp

Removed center initialization that also had incorrect data type.
Merge pull request #3 from darrensapalo/master

Added some error handling