Using trust and “utility” for group formation in the cloud of things