Add duplication-based solution, equivalent to always doing BFS
Minor fixes, add mkl