add resolving polish notation recusively