Marr-Hildreth algorithm for detecting edges in digital images in Java