Completed all sorts for adjacency list. Still need to implement all the sorts on the matrix.