Accounted for nil values in vector functions
+ lib-ngrams & updated lib-vectorspace version