Convolution.java: Adding algorithm functions.