Unit time task scheduling using greedy algorithm