Cleaned up house(), added type annotations,
added matrix generation functions
moved in appropriate subdirectories