Monte-Carlo Simulations for Heating of Superdense Matter by Relativistic Electrons