The matlab implementation of the rlsom algorithm