public MyRecord search(String name){
		Node node=root;
		MyRecord result=null;
		//when node isn't leaf, find the record in the node, or find the right next level node to search
		while(!node.isLeaf()){
			int flag=0;
			for(int i=0;i<node.getKeys().size();i++){
				if(node.getKeys().get(i).getName().compareTo(name)==0){
					result=node.getKeys().get(i);
					return result;
				}
				else if(node.getKeys().get(i).getName().compareTo(name)>0){
					node=node.getChildren().get(i);
					flag=1;
					break;
				}
			}
			if(flag==0){node=node.getChildren().get(node.getChildren().size()-1);}
		}
		//when node is leaf
		for(int i=0;i<node.getKeys().size();i++){
			if(node.getKeys().get(i).getName().compareTo(name)==0){
				result=node.getKeys().get(i);
				return result;
			}
		}
		return result;
	}