Smart Sampling and Optimal Dimensionality Reduction of Big Data Using Compressed Sensing