added basic cuda mem alloc free functions