add functions to convert uint8array to wordarray