updated java library with intensity algorithms to reflect cpp impl.
updated java library with intensity algorithms to reflect cpp impl.