Add a way to convert Mat into byte array and vice versa. And increase the iteration number of BOW cluster.