Implement multiway join 4clique

Change-Id: I23a4907cf6577b4976024414c23aa07342452fad