Added topN query (new topn method in query class that accepts the dimension, the metric and the threshold to use)