fixed nested brackets

Added Input::bracketsEqual function to check if there are an equal number of ( and ) and only remove the brackets if there are

	new file:   Calculator.pro.user
	modified:   api/tim/input.cpp
	modified:   api/tim/input.h
	modified:   calculatorwindow.ui