Changed similarity computation to use VectorBase