some codes for big data problems