Topcoder and StevenSkeina solutions added.