Replaced Theano ifelse commands with switch commands. Doing so appears to have resulted in a ~25% speed up on MNIST.