Program to find minimum element in an array