GPU-based beamformer: fast realization of plane wave compounding and synthetic aperture imaging