Fixed more bugs in L&R code. Output does not make sense, surface area is far too large, failure in detecting neighbors or something else?