Algorithm library for programming contests.