Implemented clostest station function