Accurate and efficient layout extraction by Meys