My code for the algorithms course