Autonomous Appliance Scheduling System for Residential Energy Management in the Smart Grid