Replaced std::set with std::vector

Just seems to be causing too many issues, I've manually emulated it with
std::vector now.