Added Find min solution