Simple Stack implementaton using CPP templates