Tried a stack based implementation without RPN / posfix - 'stack calculator' works until hit brackets. Back to the drawing board!