Added swig template inheritence