Cpp Min Element Function In C