Allocate memory for window-lda on initialization, add lrr saving functions.