corrected part a probabilities and implemented part c
Merge branch 'master' of github.com:tsc64/information_retrieval
fixed variables after merge