K-order entropy calculator