Online Structure from Motion