Fixed defect with merging algorithm
Added K graphs