c program to find smallest element of array