import Data.List(delete, minimumBy)