Algorithm For Implementation Of Stack