new algo!!! yay!

now traversing in blocks...hopefully will reduce the time dramatically.