Program rewritten sequentially to find error in code. Stereoloop functionality working. Filter causing segfaults