Implemented proper_parens() and associated tests
Implemented proper_parens() and associated tests