Signed indices

You'll want to merge #20 first.