Added negative number recognition to convertToPostfix