Matching demand with supply in the smart grid using agent based multiunti auction