Add: 1) sorting based first fit algorithm