- Working general solution.
- Limitation:
	- Non optimal
	- Does not work if indexes are numeric and non-numeric. Require non-numeric indexes or numeric orderer or will overwrite indexes.
Removed unnecessary code.