function to mkdir and cd into the new directory