add ADLDA
fix some bugs and testing adlda