Building hvac retrofitting using a pv assisted dc heat pump coupled with a pcm heat battery and optimal control algorithm