Implemented RAMDirectory vs FSDirectory for testing purposes