basic implementation of Neural arithmetic and logic units as described in arxiv.org/pdf/1808.00508.pdf