reorganize compare function into Comparator
(fix compile error)
Merge branch 'master' of github.com:NicolasDuran/mlea_signature