Implementation of unix tail command