Algorithms for big data processing