funcC added: start of a most similar C code to the lamdheal, good to predict speed/profiling