stack example for matching brackets in source code