Adjacency Matrix calculation Added

Adj Matrix can now be computed- there are still some bugs as it doesn't
give the same results as the Matlab implementation.