Implement a strategy of O(n) to find the best combination of lines to reconcile
The combination implementation is replaced by strategy that search the smallest remaining from the order lines by removing the last debit or credit depending on the remaining sign.
Closes #13451 (closed)