Key of the bucket-heap changed to int + added protection on too high keys.