Massive Shell Models in the Gravitational Theories with Higher Derivatives