Implemented grouping by parent task

Fix for #20