Fast methods for solving certain structured linear systems