did the reverse polish notation algo....nice one..