array and LL implementations of stack