create_design_in_memory function

A function to create a design with an in-memory X matrix