min sketch constructor based on error bounds