Encoderwork

ScalarEncoder main methods (encode and decode) along with tests for same.
Fixes #68