adding stack and queue impl using arrays and linkedlist