I believe I finally calculated gamma.
I now have alphas.
Modified ISI, completed beta and detector. Still significant debugging to go.
All calculations verified for their correct indices. But now numerical instabilities cause alphas and betas to be too low to the point they are -nan.
Not sure why the output seems to get everything except the first and last bits. The first one is always -1 and the last one is missing. There is something wrong.