Fix jdk compile errors
Add gatherScatter
or and and moved to traversal api