integrated one time c, s and t neighbor calculation

added support in get_neighbours. Now using pre computed values instead
of computing in every iteration.