Investigation of carbon in megabar regime