Revert "Solving multiple shapes display order with new function addOrdered"

This reverts commit d4fe4c108b46810399b3e8d0c3b9e2189f7e44a9.
Solves issue #9 : paths ordering and shapes ordering
More complex way to find closer path