Fixed precedence tree, added ^, | and & operators.