Demand response algorithms for smart-grid ready residential buildings using machine learning models