Better algorithm to compute J4's
Merge pull request #8 from shadow-robot/F_improve_j4

Better algorithm to compute J4's