Assignment from CSS343: Math, Algorithms, and Data structures