Added topN query (new topn method in query class that accepts the dimens...

...ion, the metric and the threshold to use)