Significant Re-write and Archived Old Scripts

Overhauled main solver, including extensive vectorization. Reduced
solver length from 120 lines to 40! Also should be much faster as a
result.