multiple stack implementation using single array