Hierarchical Search With Probabilistic Quadtrees Applied To Single And Multi-Agent Systems