Changing the structure of Graph class to int[][] which makes it very
faster in loading files and also more memory efficient.