reorganized profile_indels.cpp