Added new morph operator (dilation and erosion) for cubes.

Please merge into experimental branch.