Assignment 3 in course Algorithms and data structures