Added method declarations returning generic return type in IQueue interfa...

...ce to make it work in java8.