A simple implementation of structure from motion