Space? O(b m )