With an incredible technique without nails, wooden buildings can withstand earthquakes for centuries