make nearest a class method
Merge pull request #2 from mitchellhenke/nearest-class-method

make nearest a class method