Low-complexity M-hypothesis detection: Projection approach