stack parentheses balance
use stack to do matrix chain mulplication
data structure