My solution for Assignment 3 in course COMP4009 Parallel Computing