prepare.idata function

Prepare Idata vector of 0's and 1's