Simplified implementations of search algorithms, for use in COMP3702 tutorials.