Move BlockCoord to ttCore and migrate for loops to block iterators