Create generic comparison method via reflection