Calculate cell neighbours