first test version of refactored code with learning.
Merge branch 'confidence' of http://bificomp2.sote.hu:22422/comppi into confidence
Refactored version of confidence score calculator with learning. Yet untested due to dataset limitations.