Placed 3rd in the 2014 Computational Challenge with this code.