Specific heat and lattice dynamics of layered TiS2 crystal