Topcoder Randivoo Challenge submission