orders: correctly limit search depth

Now we cap total search depth at 500+(last_search_depth) for each iteration. This will presumably make large quantites of orders less laggy by spreading their path calculations over several iterations