Added RematerializerTemplate
Basic functions for Rematerializer Template