Added complexities of all algorihms.