Return index of cell which containes the given velocity value v. If the returned index is 0, the point is outside of the grid.