Finished the naive implementation. Doesn't work too well but it's good enough as a benchmark