What tower house did David Gregory inherit in 1664?