Low Complexity Detection and Precoding for Massive MIMO Systems: Algorithm, Architecture, and Application