first version LLDA; WARNING: untested!