implements overloeade genrericMath.min() with an IComparer