go: add some go code

Signed-off-by: Rohit Yadav <bhaisaab@baagi.org>
algorithms: add java implementation wip for union-find

Signed-off-by: Rohit Yadav <bhaisaab@baagi.org>