Added in distance methods as well as a few search implementations.