Basic Line Drawing

Some distance functions and a function for drawing lines between p1 and
p2 coordinates on a tilemap.