<p>I’m not the expert on this, but I think CS would be the way to go here. Not only does it contain all the relevant courses you need, but it has that flexibility you want. CS degrees have extremely high value right now and its a great way to go. Anybody scoffing at that choice of major is quite plainly an idiot.</p>