Rename function.cpp to dist.cpp