k nearest numbers from a number in a sorted array