What is the difference between sunni and shia and kharajite and sufism in Islam?

there are many difference between a suni and a shia suni say that there are four khalifha but shias say that there is only one khalifha hazrat ALI