Added file to vectorize arrays, so that we can do certain compound expressions even though MATLAB doesn't allow chained indices for some reason