Implementation of some parallel algorithms (MPI, OpenMP and Pthreads)