Assignment 2 for Algorithms and Data Structures course (6114)