Init matrix and pointer graphs
Finish graph implementation using several DS