adding buggy cuda implementation