Краснояров - Лабораторная работа #2

vectProbVal contains pair (probability, value). Didn't find better name :(