Man who killed wife, in-laws pleads guilty