performance enhancements - now gets through first 3 in C-large-1.in.txt in 2 minutes rather than an hour and change