implemented own stack to convert to postfix and evaluate (seg fault)