Clique partition problem is solved by finding a maximal clque each time