Searches the element x in mat [ m ] [ n ] . If the element is found , then prints its position and returns true , otherwise prints " not ▁ found " and returns false
bool search ( int mat [ ] [ MAX ] , int m , int n , int x ) {