     private var maxBits: Int
 
     var description: String {
-        return lengths.reduce("HuffmanTable:\n") { $0.appending("\($1)\n") }
+        return self.lengths.reduce("HuffmanTable:\n") { $0.appending("\($1)\n") }
     }
 
     init(bootstrap: [Array<Int>]) {


import Foundation

struct HuffmanTable: CustomStringConvertible {

    var lengths: [HuffmanLength]


        }
        self.lengths = newLengths.sorted()

        // Calculates symbols for all lengths in the table
        func reverse(bits: Int, in symbol: Int) -> Int {
            // Auxiliarly subfunction, which computes reversed order of bits in a number
            // This is some weird magic
            var a = 1 << 0
            var b = 1 << (bits - 1)
