Vectorize activation functions

Big speed increases with some of them