Contact melting of a rectangular block with temperature-dependent properties