Added abstract class CPattern and new pattern CCorner

Some methods and properties of CTrihedron are now inherited from CPattern