added some simple cuda functions

example updated accordingly