Optimized get dist to use numpy array indexing
Merge pull request #3 from nbresnick/master

Optimized get dist to use numpy array indexing