Breadth First Search using an adjacency matrix implementation of a graph