3D Instance Segmentation via Multi-task Metric Learning