Added serial CPU implementation

Conversion + Classification + DFS + Bugfixes