Bioreactor for cell culture and fermentation