added more useful M-< and M-> command
added more useful M-< and M-> command for dired