gradient tries