fixed bugs in class discrimination algorithm
Merge branch 'master' of https://github.com/IVPR/Weave