Housing Peak Shaving Algorithm (HPSA) with Plug-in Hybrid Electric Vehicles (PHEVs): Vehicle-to-Home (V2H) and Vehicle-to-Grid (V2G) concepts