custom made stack implemented for postfix operation