adds neighbor calculation to 2dmesh