java codes (topcoder, test codes, algorithms)