BNPdensity: Ferguson-Klass type algorithm for posterior normalized random measures