New solution for paranthesis match problem