Removing old gain_solve script
Fixed problem in gain solver, now about 4-5 times faster
Last speed boosts to gains solver, should now work 10x faster than original