lswms algorithm test