Revert "Remove the draft of ANOVAResidual"

This reverts commit aebbf88f8a3a39296a2ee5fcec6c9a224efca683.