Improved parsing & created virtual functions

-the parsing function now takes only string as its parameter and returns process_t
-created virtual functions for array of functions using different algorithms later on