removed dist()
removed dist()
added variable to change search radius
removed unnecessary dist()
added const
finished method