basic algorithm implimentations in c