worked out pi2n_applyJ and test for it
Merge pull request #2 from jcchin/master

worked out pi2n_applyJ and test for it