Find min from an array