Rewritten parts of the linear partition method

Rewritten the generation of the linear partition solution table to use C-style buffers instead of Objective-C objects to gain in execution speed