write correct divide matrix method to increase speedup ratio to 18