getProcesses function

Function to compute processes based on a list of sequences