Find smallest element in array