sidestep Android compatibility issues.
Merge pull request #18 from nagoya0/compati2

replaced method calls of LinkedList#peek{First,Last}() into LinkedList#get{First,Last}() within LinkedBufferInput class. the change is for Android