Wrote the isCoordinateInside stuff.

Which are, by the way, very easy...