Two-Loop Maximal Unitarity with External Masses