Changed typed array formats used - reduced memory requirements by about half.