Radically modified bmp_top_test to incorporate tests for both top and bottom layer construction. Added functions to bmp_top. Testing for correctness of bmp.