Custom Stack Implementation In C