Made general performance updates to the code. Still getting errors. generalized X and Y for every IO. Created getDistanceLocs method.