Improved space search in pcomplete