Judge schedules competency hearing for man linked to 1997 cold case rape