add 'net' and 'local' modes for computing hamming distances with CUDA.