Add earlystop layer

Currently, we could compile earlystop layer and pass all previous test
without breaking any thing before