averaged persistence length added to persistence_length.cpp