Addes efficient maxout implementation + test.