General encoding/decoding algorithms library for Go