neigbour sharing coded, compiled and seems to work. Fine analysis to be done to be sure