make MaxoutHiddenLayer cpu compatible
fixed maxout for cpu