program to find if an element is present