Add faithful implementation of elEMAS

By the book (hopefully).