Viereckbestimmung

Determine the shape of a given array of points. Assignment made a while back, not very good code.