Library of algorithms for the ICPC contest