On the topology of the Hessenberg varieties of a matrix