add a little description
bug fix if y has duplicated values
debug: D become logical
fit new definition of recurrent-data
debug of Z_i.hat
debug of generation of testing dataset