add functions mode 0 and 1
Merge branch 'master' of https://github.com/jdewasseige/prob_matlab_num