Molecular dynamics investigation of heat capacity of nanogap confined liquid