Minor improvements to the Scala solution for the "Valid Parenthesis" problem