Update for modern CUDA (11.1) and fix bug with -q mode
Update to work with modern NVIDIA CUDA versions (tested on NVIDIA nvcc compiler and CUDA SDK release 11.1, V11.1.74 on a 64-bit Linux system and a NVIDIA GeForce GTX 1080 (Founders Edition 8GB GDDR5X 2560 CUDA cores).
Fixed bug with query list mode (-q ) with getting 'ERROR: query not found' due to bug in code for building the query list index from the list of identifiers read on stdin.