Updated the function sor_heap() so that the unit distance can be specified. This will appropriately scale the distance estimates that the function returns.