Phase portraits of quadratic systems: Higher order singularities and separatrix cycles