Added functions to convert in between coordinates and indices
Probably move this out to different file when organizing code
Created a Vertex object that has methods to get its 4 neighboring pixel and check if it is an edge