Algorithm For Stack Implementation Using C