add distance struct
update test_template.c
delete backup file