Added calcIndex functionality
Added exception handling to calcIndex + associated JUnits
Implemented adjacency lists. Passes JUints