Renamed "J" to "currentInt"

This new name is meaningful to J's role in the algorithm, making reading the code easier.