adding optional pca to convex and mnist