Rename generateDistributedWeight to generateDistributedWeight.cpp