refined freq sampling, change 'LOG' to 'System.out.println'
finished freq sampling !
stable version. prepared to migrate to CDH4.