also some bug fixes
changes raw pointer to shared pointer
began flexible alloc of probe arrays
moved cuda memory management to cuda memory manager