How many storeys does this tower house have which David Gregory inherited in 1664?