compile – How to have compiled and normal Module at the same time without copy the code?

I have a Module like this

simTree1[n0_,k0_]/;n0>=1:=Module[{heights,parent,i},
heights=ConstantArray[0,n0];
Table[
parent=Min[RandomInteger[{1,i-1},k0]];
heights[[i]]=heights[[parent]]+1,{i,2,n0}];
heights
]

I want to speed it up so I compile it to C

simTree1C=Compile[{{n0,_Integer},{k0,_Integer}},Module[{heights,parent,i},
heights=ConstantArray[0,n0];
Table[
parent=Min[RandomInteger[{1,i-1},k0]];
heights[[i]]=heights[[parent]]+1,{i,2,n0}];
heights
],CompilationTarget->"C"]

This makes it much faster. But I also want to keep the original version so I can compare the speed. Is there anyway to do this without having to copy the code?