simple version control program in c