Algorithms, Lab 2