A Dimension Reduction-Based Joint Activity Detection and Channel Estimation Algorithm for Massive Access