Development of the temperature prediction algorithm for smart thermostat