Implement Push And Pop Algorithm Of Learning