example calculating similarities between three simple documents and a query