Added comments to IsValidParentheses