added isempty and isfull function
added isfull function