Fix memory error for big values of id_range

Should fix https://github.com/piskvorky/gensim/issues/146