Update main.h

delete template <class TypeArray>