Linear Discriminat Analysis implementation