and consequently some of the very best students were had excellent memories
Because of that, the students with excellent memories were some of the best students.