Improved datamatrix reader with new algorithm