Algorithms for managing, querying and processing big data in cloud environments