Shell-and-tube heat exchangers with floating head and U-type tubes