Made buffer's get() more restrictive - monitor is locked, and if an out of bounds index is accessed it will return the last element instead
This should solve (in a dirty way) the out of bounds problem due to multiple updates