Basic nearest building implementation