A greedy approach for resource allocation in Virtual Sensor Networks