added a demo for LDA, based on square matrices