Implement linear chain for mmr.

Maaku suggested trying this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>