findMinValue implemented