Rewritten the generation of the linear partition solution table to use C-style buffers instead of Objective-C objects to gain in execution speed
currentMin was set to -1 initially, this will not do any harm because the x inner loop will always set currentMin to cost at least once, but it looks erroneous because all integers should be positive, 0 is better
Merge pull request #9 from lickylick/master

Rewritten parts of the linear partition method