Adding smallest element-finder