MLP: add comparison operator; move back to optimize forward + tests #128