See further upon the giants: Quantifying intellectual lineage in science