Implemented n and log n solutions for retrieve