Added Shape constructor to allocate memory for arrays used by its
subclasses