To find minimum discord