Changed comparer to a struct and operator()