RLDA and PCALDA implemented without testing.