Heat capacity and critical behavior of hexagonalYMnO3