some algorithm problems solved in c.