parsing polish notation