Algorithms: revised and expanded everything