Algorithm library for Programming Contest