Update BookRepository.java

Added addbook() function.