added top_k function to metergroup. @JackKelly please could you see if this looks ok.
at the moment is a bit complicated