Optimal Combining and Detection