Implementation of Graph Cube over Spark in Scala