Added code from cross join to start with.

Modified some variable names to match the rest of the code in the
nested loop join.

Also need to modify cross join to do nested block join instead.