https://en.wikipedia.org/wiki/A-law_algorithm