added a c implementation of ll