new branch to commit my attempts at correctly indexing our new 1D arrays.
Unfortunately it's kinda busted.
I was indexing the weights in the kernel incorrectly. This seems to be working! for the cpu at least.
Update GPU naive kernel for flat matrices and fix loop nesting
Merge corrected cpu code into master

Conflicts:
	cuda/kernel.cu