Added in the types to process the different types of seams.
Also added the ability to calculate the energy matrix that is used in the calculation of finding the minimum seam.