shad/algo2: developing ukkonen algorithm