Function to search values in Multidimentional Array