Added Methods for to search for the nearest values ​​in an array