The current topological sorting functions use array for the node list making it impossible to use if the size isn't known at compile time and for varying inputs. Using Vec for node list can improve the usability of the topological sorting functions by a lot