refactored functional shared instatiated stack to use prototypal instantiation
refactored functional shared instatiated queue to use prototypal instantiation