added convolution, upscale, and downscale methods for image class
kdtree utility class