Add insert to arbitrary depth

Adds insert to arbitrary depth