added chainTip algorthim. Scanning is being slowed down by disk seeks. This is being ignored by me