A study of magnetic phase transition in a two-dimensional lattice by heat capacity measurements