added duplicate handling to mutation matrix