Cyclic behavior of cohesionless granular media using the compact state concept