Implement Push And Pop Algorithm Of Selection