Investigation on Dynamic Economic Dispatch Problem of Micro Grid Using Cuckoo Search Algorithm - Grid Connected and Islanded Mode