Bounds for the genus of space curves