The opimistic calculations were terminating too early

When the optimistic calculation were being performed the system would
only run to the first item with weight > remaining capacity, even
though there could be elegible items after it.