qr_version function

Determine the required version Returns a list with the version, error correction level and mode. The bit string encodes mode and the length of the input string.