Optimization of a Line Detection Algorithm for Autonomous Vehicles on a RISC-V with Accelerator (Full Report)