Added basic classes and BFS

Though some refactoring is necessary.