added method to generate rectangle training grid map