Secure computation of inner product of vectors with distributed entries and its applications to SVM