Added basestate calculation to GPU. To-do: speedup, it's now the most expensive routine on the GPU...