CUDA Library for grid conditional random fields