Compare your item to items in an array and get the closest one.