Preallocate arrays to avoid repeated growth during profile encode/decode
Also update the build instructions to use go get