practice algorithms from the book "Algorithms, 4th edition"