Implementation of ls command of unix