I have an array of segments length. I need to divide length into segments minimizing leftover (Preferably picking biggest segment lengthths) (lenghts are not integers). I ca