An algorithm library