start to implement NRD top-k