Added up and down search; program is complete with basic DFS