Updated length test to handle raw data. Updated memTest to do a grid search. Testing that now.