added generalized p-box representation (doc to do)