Code for my Algorithms course