Changed quotation style in literal strings according to the Ruby Style Guide.
Added benchmarks.
Optimizations.