1d Gaussian Filter in Java