add C++ implementations of Lloyd's and the filtering algorithm for comparison