Implemented filtering by distance

Close #92