adds smallest element from list