Algorithms assignments