implementation of the LA-N algorithm