min find sorting algorutm added