Add the new method to detect rectangle.
Merge branch 'master' of git@github.com:jockeyyan/MyOpenProjects.git