src: Add parse_trace(), a function which parses and stores a trace to a vector