Fixed some problems I unintentionally introduced when trying to speed up the solution. Added a run time print statement. Run time is about 90 seconds.