working version using memcopy between c and i block
added code for passing pointer between iblock and cblock - however core does not recognize new function
fixed the problem with the core and moved creation of random values to helper function