Improved some performance. addnode and removenode. Not using logfactor function anymore, accessing directly to the 5k log list which results on a 10% improvement (in very fast code, needs checking in larger time executions).