CMSC 401 Algorithms, along with other algorithms implemented outside of class