added .log files to gitignore. tree is broken, stackoverflows on depth() because i somehow managed to make a node its own left child