add check empty and get size method.
add test for empty check and get size method.
fix gitignore for vim tmp file.
Merge pull request #2 from nel215/feature/add_empty_method

Feature/add empty method