Implemented adaptive neighbourhood selection using rewards and penalties