same bfs program in c on a matrix