figured out recursive inject, but it destroys original array. Need to figure out way of conserving original