First attempt at bracket matching exercise...needs improvement, doesn't pass all test cases.