Implemented list-based version of get_distance method. Removed Masked arrays. Code 952 times faster.