__min routine added
__min test case added