optimized for speed by removing srt calc in distance calc.  also fixed rbins API to except a single number.