Implemented Generic Stack and array solutions