Fixed some bugs with distance measures due to arange values causing
some strange bugs. Calling round() on the values seems to fix them.