fixed the bug in hungarian.c: assert() cannot be used in release mode
normalize the feature distance