Added toString method to both Operator and Gptree

Added toSTring test