Table recognition - initial implementation