Graph, Clustering, and Machine Learning algorithms on MarkLogic