Fixed Lat to I and I to Lat conversion

Needed to account for 0 based 2d array, added a -1 in both lat to i and
i to lat methods.