Added abstract class for calculations with two sources. Added composite triangle.