change return value from long to int in the sparse_random_projection function to avoid pig casting issues