John Beales signs for Cray