Convert files to/from IDX to vectors, matrices and arrays
