add implementation of the LA algorithm