Replaced rec.maps[xs.front()].size() by rec.num_probes_product
Replaced sizeof(CUdeviceptr) by sizeof(mapd)
Moved the precalculation of p_offset from main to receptor
Added get_lig_elems(), get_sln_elems() and get_cnf_elems() to ligand
Renamed mc to monte_carlo
Replaced absolute path to idock.fatbin by getenv(idock_fatbin)
Replaced cuModuleLoad by cuModuleLoadDataEx
Moved safe_function, safe_counter and safe_vector from main to utility