Added some extra logic to stringify the topNelements, in order to publish them with jedis