Move getNarrowAncestors to RDD.scala