The use of uncertainty for improving the reliability of classification in face based recognition algorithms