Wright pleads no contest to murder, stabbings