fix bug in powerDenseMatrix: apply wrong use (build-in function in apply() use <<-)