Completed basic Fountain encoding method in Go