Added missing copyright notice, removed unused usings.
Removed redundant range pair cases
Removed duplicated empty range pair cases