Added function to pad vectors.
Implemented phrase probability correctly using a weighted model of 1,2, and 3-grams.