Added sparse_dot functions