Protein fold recognition with contact threading