Updated coord_golden and coord_square.

* Added ratio_golden to calculate golden ratio
* Added ratio_square to calculate square aspect ratio
* coord_golden can now use either horizontal or vertical orientation