started smallwood algo