Algorithms from the book (Algorithms, 4th Edition)