fix(sharding): place smallest key correctly

Also add a __repr__ method to Node class for debugging purpose.