wrote algorithm for getting fundamental matrix