Working parens balancing function - more unit tests to come