Added sparce array and adjacency matrix,
		the first of which may prove to be wasted effort as we care only about
the reverse mapping (i.e. where is this element, not what element is
here.)